/**
 * sessionStorage 操作集合
 * @type {{setSessionStorage: setSessionStorage, getSessionStorage: (function(*=): any)}}
 */
let SESSION = {
    // 写入本地存储localStorage
    setSessionStorage: function setSessionStorage(name, value) {
        let _value = JSON.stringify(value)
        window.sessionStorage.setItem(name, _value)
    },
    // 读取本地存储localStorage
    getSessionStorage: function getSessionStorage(name) {
        let _value = JSON.parse(window.sessionStorage.getItem(name))
        return _value
    }
}
export default SESSION